import time

from selenium import webdriver
from selenium.webdriver.common.by import By

driver = webdriver.Chrome()
# 2.输入访问地址
driver.get("http://121.43.169.97:8848/pageA.html")


# ID选择器
driver.find_element(By.CSS_SELECTOR,"#userA").send_keys("admin")
# 属性选择器
driver.find_element(By.CSS_SELECTOR,"[name='passwordA']").send_keys("123456")
# 类选择器
driver.find_element(By.CSS_SELECTOR,".telA").send_keys("123456789")
# 多个class值，通过点号连接
driver.find_element(By.CSS_SELECTOR,".emailA.dzyxA").send_keys("12345@qq.com")
# 标签名选择器
driver.find_element(By.CSS_SELECTOR,"button").click()